﻿using SaaS.Model.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Sites
{
    /// <summary>
    /// 平台运营
    /// </summary>
    [Table("Site_Operations")]
    public class Operation : Entity<int>, IHasCreationTime
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int ProjectId { get; set; }
        /// <summary>
        /// 平台运营状态
        /// </summary>
        public OperationStatus Status { get; set; }
        /// <summary>
        /// 平台类型
        /// </summary>
        public OperationsType Type { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        public DateTime CreationTime { get; set; }
    }
}
